package com.tools.generator;

/**
 * @author Admin
 */
public class DbConstant {

    /**
     * jdbc:mysql://localhost:3307/数据库名称"
     */
    public static final String MYSQL = "MySQL";
    public static final String MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";
    public static final String MYSQL_URL = "jdbc:mysql://{}:{}";

    /**
     * jdbc:oracle:thin:@//localhost:1521/数据库名称
     */
    public static final String ORACLE = "oracle";
    public static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";
    public static final String ORACLE_URL = "jdbc:oracle:thin:@//{}:{}/{}";

    /**
     *  "jdbc:sqlserver://localhost:1433;DatabaseName=数据库名称";
     */
    public static final String SQLSERVER = "sqlserver";
    public static final String SQLSERVER_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    public static final String SQLSERVER_URL = "jdbc:sqlserver://{}:{};DatabaseName={}";


    /**
     * jdbc:postgresql://127.0.0.1:5432/mydb?
     */
    public static final String POSTGRESQL = "postgresql";
    public static final String POSTGRESQL_DRIVER = "org.postgresql.Driver";
    public static final String POSTGRESQL_URL = "jdbc:postgresql://{}:{}/{}";



    public static final String YES = "YES";
    public static final String NO = "NO";
    public static final String PRI = "PRI";
    public static final String AUTO_INCREMENT = "auto_increment";

}
